package chw.bootclient;

import chw.dubbo.UserService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class DubboConfig {

    @DubboReference(timeout = 1000)
    private UserService userService;


    @Bean
    public UserService userService() {
        return userService;
    }

}
